//
//  ChildModel.m
//  IpadR
//
//  Created by edianzu on 2017/5/25.
//  Copyright © 2017年 ruilai. All rights reserved.
//

#import "ChildModel.h"

@implementation ChildModel
+(instancetype)modelWithDictionary:(NSDictionary *)dict{
    return [[self alloc] initWithDictionary:dict];
}

-(instancetype)initWithDictionary:(NSDictionary *)dict{
    if (self = [super init]) {
        self.AgeGroup = dict[@"AgeGroup"];
        self.ChildId = dict[@"ChildId"];
        self.KindergartenId = dict[@"KindergartenId"];
        self.ClassId = dict[@"ClassId"];
        self.DataId = dict[@"DataId"];
        self.Gender = dict[@"Gender"];
        self.Id = dict[@"Id"];
        self.PlanId = dict[@"PlanId"];
        self.Birthday = dict[@"Birthday"];
        self.ChildName = dict[@"ChildName"];
        self.CreateTime = dict[@"CreateTime"];
        self.PlanTime = dict[@"PlanTime"];
        self.BroadJump = dict[@"BroadJump"];
        self.BroadJumpScore = dict[@"BroadJumpScore"];
        self.Balance = dict[@"Balance"];
        self.BalanceScore = dict[@"BalanceScore"];
        self.DoubleJump = dict[@"DoubleJump"];
        self.DoubleJumpScore = dict[@"DoubleJumpScore"];
        self.Height = dict[@"Height"];
        self.HeightScore = dict[@"HeightScore"];
        self.ShuttleRun = dict[@"ShuttleRun"];
        self.ShuttleRunScore = dict[@"ShuttleRunScore"];
        self.SitReach = dict[@"SitReach"];
        self.SitReachScore = dict[@"SitReachScore"];
        self.Throw = dict[@"Throw"];
        self.ThrowScore = dict[@"ThrowScore"];
        self.Weight = dict[@"Weight"];
        self.WeightScore = dict[@"WeightScore"];
        //bool
        self.IsAbsense = [dict[@"IsAbsense"] boolValue];
        self.IsMentalBalance = [dict[@"IsMentalBalance"] boolValue];
        self.IsMentalBroadJump = [dict[@"IsMentalBroadJump"] boolValue];
        self.IsMentalDoubleJump = [dict[@"IsMentalDoubleJump"] boolValue];
        self.IsMentalShuttleRun = [dict[@"IsMentalShuttleRun"] boolValue];
        self.IsMentalSitReach = [dict[@"IsMentalSitReach"] boolValue];
        self.IsMentalThrow = [dict[@"IsMentalThrow"] boolValue];
        self.IsMotorBalance = [dict[@"IsMotorBalance"] boolValue];
        self.IsMotorBroadJump = [dict[@"IsMotorBroadJump"] boolValue];
        self.IsMotorDoubleJump = [dict[@"IsMotorDoubleJump"] boolValue];
        self.IsMotorShuttleRun = [dict[@"IsMotorShuttleRun"] boolValue];
        self.IsMotorSitReach = [dict[@"IsMotorSitReach"] boolValue];
        self.IsMotorThrow = [dict[@"IsMotorThrow"] boolValue];
    }
    return self;
}

@end
